$def with(form, avatar_path)
$var title: $context.user 的设置
$var gmap: 0

<h1>个人设置</h1>
<div class="left_side">
    <form method="POST">
    <ul>
        <li>名号 $:form.nickname.render()</li>
        $if avatar_path:
            <li><img src="$avatar_path" alt=$context.user></li>
            <li><a href="/avatar"> 修改个人头像</a></li>
        $else:
            <li>你还没有头像，<a href="/avatar">上传一个</a>吧</li>
        <li>居住地 $:form.location.render() 详细地址 $:form.location_detail.render()</li>
        <li>年龄 $:form.age.render() </li>
        <li>性别 $:form.gender.render() </li>
        <li>登录密码 <a href="/passwd">修改</a></li><br>
        <li><input class="submit" type="submit" value="提交"/> <a href="/profile?uid=$context.id">取消</a></li>
    </ul>
</form>
</div>
<div class="right_side">
</div>
